public class Person {
    public String name;
    public int age;

    public  Person(){
        this.name="小花";
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    /* public Person(){
                this("小名",8);
            }*/
    public Person(String name,int age){
        this.name=name;
        this.age=age;
    }


    public Person(String name){
        this.name=name;
    }
    //无参
   /*public Person(){
       this.name="小花";
       this.age=9;
   }*/
   //一个参数

   //两个参数



    public void eat(){
        System.out.println(name+"正常吃饭");
    }
}
